package com.authine.cloudpivot.ext.dto.model.invoice;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(description = "红冲明细Model")
public class OffsetInvoiceDetail implements Serializable {

    private static final long serialVersionUID = -2114373765047725375L;
    /**
     * 蓝票明细ID
     */
    @Schema(description = "货物发票红冲=蓝票明细ID，服务费发票红冲=invoice_detail_bill模型的ID", required = true)
    private String id;
    /**
     * 货物发票红冲的数量
     */
    @Schema(description = "货物发票红冲的数量")
    private BigDecimal quantity;
    /**
     * 服务费发票红冲的含税金额
     */
    @ApiModelProperty(value = "服务费发票红冲的含税金额")
    private BigDecimal total;
}
